package com.eastjet.maintenance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 仓库表
 * @TableName device_warehouse
 */
@TableName(value ="device_warehouse")
@Data
public class DeviceWarehouse implements Serializable {

    @TableField(exist = false)
    private DeviceDept dept;
    // 与device_dept表的关联
    // 这个字段在数据库表中并不存在
    @TableField(exist = false)
    private DeviceUser user; // 与device_user表的关联

    /**
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     *
     * .
     * ...........................
     * 仓库编号
     */
    @TableId(type = IdType.AUTO)
    private Integer warehouseId;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 父级仓库
     */
    private Integer warehouseParent;

    /**
     * 仓库编码
     */
    private String code;

    /**
     * 负责部门
     */
    private int warehouseDeptId;

    /**
     * 负责人
     */
    private int warehouseUserId;

    /**
     * 联系电话
     */
    private String contact;

    /**
     * 仓库状态(0-启用 1-禁用)
     */
    private Integer warehouseState;

    /**
     * 备注
     */
    private String noet;

    /**
     * 创建人
     */
    private String insertPerson;

    /**
     * 创建时间
     */
    private Date insertTime;

    /**
     * 更新人
     */
    private String updatePerson;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    @Override
    public String toString() {
        return "DeviceWarehouse{" +
                "dept=" + dept +
                ", user=" + user +
                ", warehouseId=" + warehouseId +
                ", warehouseName='" + warehouseName + '\'' +
                ", warehouseParent=" + warehouseParent +
                ", code='" + code + '\'' +
                ", warehouseDeptId='" + warehouseDeptId + '\'' +
                ", warehouseUserId='" + warehouseUserId + '\'' +
                ", contact='" + contact + '\'' +
                ", warehouseState=" + warehouseState +
                ", noet='" + noet + '\'' +
                ", insertPerson='" + insertPerson + '\'' +
                ", insertTime=" + insertTime +
                ", updatePerson='" + updatePerson + '\'' +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                '}';
    }
}